home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
007
/
cstdio.arc
/
SRC.ARC
/
STRNCAT.C
< prev
next >
Wrap
C/C++ Source or Header
|
1984-07-29
|
363b
|
16 lines
/* strncat.c - concatenate 2 character strings.
(C) Copyright 1984 Gregory R. Mansfield - All Rights Reserved.
G. R. Mansfield. 84/07/29.
Ver 1.0-4729.
*/
int strncat(s, t, n) /* concatenate t to end of s; s must be large enough */
char *s, *t;
{
while (*s) /* find end of t */
s++;
while (*s++ = *t++) /* copy t */
if (n--)
break;
}